package org.hxyjs.dao;

import org.hxyjs.entity.Information;
import org.hxyjs.page.PageInfo;
import java.util.List;


public interface InformationDao {

    //查询全部
    public List<Information> getAllInformations() throws Exception;

    //按主键查询
    public Information getInformationByIno(String ino) throws Exception;

    //分页查询
    public List<Information> getInformationByPage(PageInfo pageInfo) throws Exception;


    //增删改的返回值都是整数
    //增加
    Integer addInformation(Information information) throws Exception;

    //删除
    Integer deleteInformationByIno(String ino) throws Exception;

    //修改
    Integer updateInformationByIno(Information information) throws Exception;


}
